<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
SessionId:<%=session.getId() %>
     <br><br>
     IsNew:<%=session.isNew() %>
     <br><br>
     MaxInactiveInterval:<%=session.getMaxInactiveInterval() %>
     <br><br>
     LastAccessedTime:<%=session.getLastAccessedTime() %>
     <br><br>
     Hello:<%=request.getParameter("userName") %>
     <%
     session.setAttribute("userName", request.getParameter("userName"));
     %><br><br>
     <a href="login.jsp">重新登录</a> &nbsp;&nbsp;&nbsp;<a href="logout.jsp">注销</a>
</body>
</html>